#!/bin/bash
echo -n "Input a directory: "
read name
cd $name
for i in $( ls *.* | grep [A-Z] )
do
mv -i $i `echo $i | tr 'A-Z' 'a-z'`
done 
